package com.logging.demo.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class HelloController {

    @RequestMapping("hello")
    public String hello() {

        log.info("hello {}!", "world");
        log.debug("hello {}!", "world");
        log.warn("hello {}!", "world");
        log.error("hello {}!", "world");

        return "hello world!";
    }
}
